package com.dong.basic.tools;

import com.rabbitmq.client.Channel;
import com.rabbitmq.client.Connection;
import com.rabbitmq.client.ConnectionFactory;

import java.io.IOException;
import java.util.concurrent.TimeoutException;

public class ConnectionTools {

    public static ConnectionFactory getConnectionFactory() {
        final ConnectionFactory connectionFactory = new ConnectionFactory();
        connectionFactory.setHost("aliyun");
        connectionFactory.setUsername("root");
        connectionFactory.setPassword("dong054977");
        return  connectionFactory;
    }
}
